package com.xinhua.erp.repo;


import com.xinhua.erp.pojo.Inventory;
import com.xinhua.erp.pojo.ProcessCompound;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface InventoryRepo extends JpaRepository<Inventory, Long>, JpaSpecificationExecutor<Inventory> {
    Page<Inventory> findAllByStockhouseId(Long stockhouseId, Pageable pageable);

    Inventory findByStockhouseIdAndProductId(long stockhouseId, long productId);
}
